package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 * @author zhangyy
 * @since 2020-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_storage_service_project")
public class StorageServiceProjectDo extends Model<StorageServiceProjectDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 项目名称
     */
    @TableField("project_name")
    private String projectName;

    /**
     * 项目内容
     */
    @TableField("project_content")
    private String projectContent;

    /**
     * 价格
     */
    @TableField("price")
    private Integer price;

    /**
     * 计量上限
     */
    @TableField("capacity")
    private Integer capacity;

    /**
     * 计量单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 币种类型
     */
    @TableField("currency_type")
    private String currencyType;

    @TableField("company_id")
    private Long companyId;

    /**
     * 0失效 1生效
     */
    @TableField("active")
    private Integer active;

    /**
     * 生效日期
     */
    @TableField("active_date")
    private String activeDate;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    /**
     * 0 是 通用1是海运头程 2库存项目 
     */
    @TableField("type")
    private Integer type;

    /**
     * 0不含税 1含税
     */
    @TableField("tax_flag")
    private Integer taxFlag;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
